<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="sec"
	uri="http://www.springframework.org/security/tags"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<sec:authentication property="principal" var="currentPrincipal"
	scope="page" />

<fmt:setBundle basename="ApplicationMessage" />
<fmt:setLocale value="zh_CN" />

<!DOCTYPE html>
<html lang="zh-CN">
<head>

<%@ include file="/WEB-INF/include/meta.jsp"%>
<%@ include file="/WEB-INF/include/css.jsp"%>

</head>

<body class="ms-theme-blue">

	<%@ include file="/WEB-INF/include/header.jsp"%>
	<%@ include file="/WEB-INF/include/submenu.jsp"%>

	<div class="container-fluid ms-container has-ms-sidemenu">

		<ol class="ms-breadcrumb breadcrumb">
			<li class="active">基础数据&nbsp;&nbsp;-&nbsp;&nbsp;车型组详情</li>
		</ol>

		<div class="ms-content-layout ">
			<div class="form-horizontal ms-form form-personal-info">
				<div class="form-group ms-form-group">
					<label class="control-label col-xs-2" style="width: 12%;">中文名称：</label>
					<div class="col-xs-2">
						<p class="form-control-static">${modelGroup.chineseName}</p>
					</div>
					<label class="control-label col-xs-2" style="width: 12%;">英文名称：</label>
					<div class="col-xs-2">
						<p class="form-control-static">${modelGroup.englishName}</p>
					</div>
				</div>

				<div class="form-group ms-form-group">
					<label class="control-label col-xs-2" style="width: 12%;">车型组图片：</label>
					<div class="col-xs-2">
						<p class="form-control-static">
							<img src="${cloudContext.domain}/${modelGroup.picture}"
								style="max-width: 100%;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
						
						</p>
						<a href="${ctx.host}/model-groups/${modelGroup.id}/picture "data-target="#picture-edit"
							data-toggle="modal" class="btn ms-btn ms-btn-blue">修改图片
						</a>
					</div>
				</div>

			</div>
		</div>
	</div>
	<%@ include file="/WEB-INF/include/script.jsp"%>
	<d:resource root="${ctx.resource}/build" type="script"
		src="js/page/data/model-group-view.js" />
	<script type="text/javascript">
        require([ 'page/data/model-group-view' ], function(page) {
        	page.init({
            	apiHost: "${config.apiHost}"
            });
        })
    </script>
</body>
</html>